<!-- 页面 -->
<template>
    <div class="yong">
        <el-row>
            <el-col :span="24">
                <div class="shang"><el-button class="an" type="primary" @click="ann()">主要按钮</el-button></div>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="4">
                <div class="">
                    <el-row class="tac">
                        <el-col>
                            <el-menu default-active="2" class="el-menu-vertical-demo" >
                                <el-submenu index="1">
                                    <template slot="title">
                                        <i class="el-icon-location"></i>
                                        <span>分类</span>
                                    </template>
                                    <el-menu-item-group>
                                        <template slot="title">分类</template>
                                        <el-menu-item index="1-1">分类列表</el-menu-item>
                                    </el-menu-item-group>
                                </el-submenu>
                                <el-submenu index="2">
                                    <template slot="title">
                                        <i class="el-icon-location"></i>
                                        <span>用户</span>
                                    </template>
                                    <el-menu-item-group>
                                        <template slot="title">用户</template>
                                        <el-menu-item index="1-1" @click="lie()">用户列表</el-menu-item>
                                    </el-menu-item-group>
                                </el-submenu>
                            </el-menu>
                        </el-col>
                    </el-row>
                </div>
            </el-col>
            <el-col :span="20">
                <div class="">
                    <router-view></router-view>
                </div>
            </el-col>
        </el-row>
    </div>
</template>
<!-- vue -->
<script>

export default {
    data() {
        return {
            // 声明的属性
        }
    },
    //生命周期函数
    mounted() {
    },
    // 调用方法
    methods: {
        ann() {
            this.$axios.post('/api/auth/logout').then(res => {
                console.log(res);
            })
        }
    },
    // 监听器
    watch: {
    },
    // 计算属性
    computed: {
    },
    // 过滤器
    filters: {
    },
    // 自定义指令
    directives: {
    }
}
</script>
<!-- css样式 -->
<style>
.yong {
    width: 100%;
    height: 100%;
}

.yong .shang {
    width: 100vw;
    height: 50px;
    background: #b3c0d2;
}

.yong .an {
    width: 100px;
    height: 40px;
    position: absolute;
    right: 10px;
    top: 5px;
}
</style>